package sh.orm.convert;

import java.sql.ResultSet;

/**
 * 抽象实现
 * @author lqq
 * @date 2019/2/21
 */
public abstract class AbstractTypeConvertor<T> implements TypeConvertor<T>{


    @Override
    public T convert(Object original, Class<T> targetType) {
        return (T)original;
    }

    @Override
    public String convertToJdbcValue(T javaObj) {
        return javaObj.toString();
    }

}
